package com.hbjycl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hbjycl.dao.StudentDao;
import com.hbjycl.dao.TeacherDao;
import com.hbjycl.entity.Student;
import com.hbjycl.entity.Teacher;
import com.hbjycl.service.StudentService;
import com.hbjycl.service.TeacherService;

@Service
public class StudentServiceImpl extends BaseServiceImpl<Student, String> implements StudentService
{
    @Resource
    private StudentDao studentDao;
    
    @Resource
    public void Student(StudentDao studentDao)
    {
        super.setBaseDao(studentDao);
    }
    
    @Override
    public boolean isExistByUsername(String username)
    {
        return studentDao.isExistByUsername(username);
    }
    
    @Override
    public Student getStudentByUsername(String username)
    {
        return studentDao.getStudentByUsername(username);
    }

    @Override
    public List<Teacher> getTeacherList(String username)
    {
        return studentDao.getTeacherList(username);
    }

    @Override
    public boolean deleteStudentTeacher(String studentId)
    {
     
        return studentDao.deleteStudentTeacher(studentId);
    }

    @Override
    public List<Student> getLockedAccounts()
    {
        return studentDao.getLockedAccounts();
    }

}
